//
//  ChangeUserInformationCell.m
//  yunyan
//
//  Created by haichuang on 2018/3/28.
//  Copyright © 2018年 haichuang. All rights reserved.
//

#import "ChangeUserInformationCell.h"

@implementation ChangeUserInformationCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        
        [self createInformationCell];
        
    }
    return self;
}

-(void)createInformationCell{
    WeakSelf;
    _nameLabel = [[UILabel alloc]init];
    [self addSubview:_nameLabel];
    [_nameLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo (weakSelf.mas_left).offset (20.0f);
        make.top.equalTo (weakSelf.mas_top).offset (20.0f);
        make.bottom.equalTo (weakSelf.mas_bottom).offset (-20.f);
    }];
    _nameLabel.textColor = RGBA(51, 51, 51, 1);
    _nameLabel.font = [UIFont systemFontOfSize:15];
    
    _userTF = [[UITextField alloc]init];
    [self addSubview:_userTF];
    [_userTF mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.equalTo (weakSelf.mas_right).offset (-34.f);
        make.top.bottom.equalTo (weakSelf);
        make.left.equalTo (_nameLabel.mas_right).offset (20.0);
    }];
    _userTF.textColor = RGBA(51, 51, 51, 1);
    _userTF.font = [UIFont systemFontOfSize:15];
    _userTF.textAlignment = NSTextAlignmentRight;
    
}



@end
